package com.millstein.security.db.mapper;

import com.millstein.security.db.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    /**
     * 根据用户名查询用户信息
     * @param username 用户名
     * @return
     */
    @Select("select * from tb_user where username = #{username}")
    User getByUsername(@Param("username") String username);
}
